<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #header{
            height: 50px;
            background: pink;
        }
        #footer{
            height: 50px;
            background: pink;
        }
    </style>
    {% block head %} {% endblock %}
</head>
<body>
    <div id="header">
            头部元素
    </div>

    <div id="footer">
            底部元素
    </div>
</body>
</html>